<template>
  <div v-if="data._isInit">
    <el-collapse-item :title="$t('基础配置')" name="1">
      <el-form-item :label="$t('标题')">
        <el-input v-model="config.title" />
      </el-form-item>
      <el-form-item :label="$t('最大行数')">
        <el-input-number
          v-model="config.maxRows"
          controls-position="right"
        />
      </el-form-item>
    </el-collapse-item>
  </div>
</template>
<script>
import configMixins from "../mixins/config";
export default {
  mixins: [configMixins()],
  data() {
    return {};
  },
  methods: {
    init(data) {
      const config = {maxRows:10};
      this.commonInit(data, config);
    },
  },
};
</script>

